<template>
<div class="xc">
        <div class="shop" v-for="(item,index) in tabs[currentIndex].xcArr" :key="index">
            <div class="imgBox">
                <img :src="item.pic" alt="" width="100px" height="100px">
            </div>
            <div class="text">
                <span class="title">{{item.title}}</span>
                <br>
                <span class="ms">{{item.ms}}</span>
                <br>
                <div>
                    <span class="price">￥{{item.price}}</span>
                    <span>+</span>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: ['tabs','currentIndex']
}
</script>

<style lang="scss" scoped>
.xc{
    width: 80%;
    height: 100%;
    flex-grow: 1;
    margin-top: 16px;
    float: right;
}
.xc .shop{
    display: flex;
    margin-bottom: 20px;
}
.xc>h3{
    margin: 30px 0;
}
.xc .shop .text .title{
    font-weight: bold;
}
.xc .shop .text .ms{
    font-size: 12px;
}
.xc .shop .text>div{
    display: flex;
    justify-content: space-between;
}
.xc .shop .text>div>.price{
    color: orange;
}
.xc .shop .text>div>span:nth-child(2){
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    background-color: lightskyblue;
    line-height: 20px;
}
</style>